package com.woniuxy.service;/* *
@author author
@create 2021-11-15 21:52
*/

import com.woniuxy.entity.User;
import com.woniuxy.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "usecredit")
public interface UseCreditService {

    @GetMapping("/creditUsed/{creditId}")
    public ResponseResult getCreditUsed(@PathVariable("creditId") int creditId);

    @GetMapping("/all")
    public ResponseResult getAllCreditUsed();

    @GetMapping("/guarantee/{creditId}")
    public ResponseResult getGuaranteeByCreditId(@PathVariable("creditId") int creditId);

    @GetMapping("/guarantee/testuser")
    public List<User> getUser();
}
